﻿using System;

namespace DataProcess.Error
{
    /// <summary>
    /// 随机码生成器的错误
    /// </summary>
    public class GeneraterException : Exception
    {
        private string message;
        public override string Message => message;
        public GeneraterException(string msg)
        {
            message = msg;
        }
    }
    public class EncryptionError : Exception
    {
        private string msg;
        public override string Message => msg;
        public EncryptionError(string str)
        {
            msg = str;
        }
    }
    public class PrioritySelectorError : Exception
    {
        public PrioritySelectorError(string msg) : base(msg)
        {

        }
    }
    public class LotteryException : Exception
    {
        private string msg = "";
        public override string Message => msg;
        public LotteryException(string message)
        {
            msg = message;
        }
    }
    public class NumberCaseException : Exception
    {
        private string str;
        public override string Message => str;
        public NumberCaseException(string msg)
        {
            str = msg;
        }
    }
    public class StringCaseException : Exception
    {
        private string msg = "";
        public override string Message => msg;
        public StringCaseException(string message)
        {
            msg = message;
        }
    }
}
